const columns = [
  {
    width: 180,
    title: '报警时间',
    dataIndex: 'uploadtime',
    key: 'uploadtime',
    fixed: 'left',
  },
  {
    title: '报警号',
    dataIndex: 'alarmNum',
    key: 'alarmNum',
    scopedSlots: { customRender: 'alarmNum' },
    fixed: 'left',
  },
  {
    title: '报警内容',
    dataIndex: 'alarmdata',
    key: 'alarmdata',
  },
  {
    title: '设备编号',
    dataIndex: 'macnumb',
    key: 'macnumb',
  },
  {
    title: '联系人',
    dataIndex: 'manager',
    scopedSlots: { customRender: 'manager' },
    key: 'manager',
  },
  {
    title: '电话',
    dataIndex: 'phone',
    key: 'phone',
  },
  {
    title: '处理状态',
    dataIndex: 'resolve',
    key: 'resolve',
    scopedSlots: { customRender: 'resolve' },
  },
  {
    title: '处理结果',
    dataIndex: 'resolveMethod',
    key: 'resolveMethod',
    scopedSlots: { customRender: 'resolveMethod' },
  },
  {
    title: '处理时间',
    dataIndex: 'resolveTime',
    key: 'resolveTime',
  },
  {
    title: '操作',
    dataIndex: 'action',
    key: 'action',
    width: 150,
    fixed: 'right',
    align: 'center',
    scopedSlots: { customRender: 'action' },
  },
];

const AlarmList = [
  '客户误操作',
  '车间供电问题',
  '客户接地不规范',
  '客户自行处理',
  '硬件故障',
  '软件故障',
  '安排现场技术服务',
  '其他',
];

const statusOption = [
  { label: '是', value: '1'},
  { label: '否', value: '0' },
];

const checkOption = [
  { label: '一级报警', value: '1' },
  { label: '二级报警', value: '2' },
  { label: '三级报警', value: '3' },
  { label: '系统提示信息', value: '4' },
  { label: '非华中系统报警', value: '4' },
];

const AlarmBack = ['#F82D2D', '#FF7365', '#FF9D62', '#FFB142'];
export { columns, AlarmList, AlarmBack, statusOption, checkOption };
